
 
 
 
 S t o p                                                                 ' 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                               Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 ' A u d i o I n p u t 
 
 	 S h o w M o t o r F P S 
 
 	 E n c o d e r s 
 
 	 F i v e B u t t o n s _ A 
 
 	 F i v e B u t t o n s _ B 
 
 	 ' I f   S e n s o r s S t a t u s     =   " S e n s o r s O N " 
 
 	 ' 	 S e n s o r s 
 
 	 ' E n d I f 
 
 	 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   4 8 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%    W A I T   C O B O T   R E A D Y                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 V a r i a b l e   N u m e r i c   W C R 1 
 
 	 F o r   W C R 1   =   1   T o   I n f i n i t y 
 
 	 	 W a i t   S e c o n d s   0 . 0 5 
 
 	 	 I f   S l o t T e x t ( 0 )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 
 
 
 
 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     S E N D   C O M M A N D   ( d e f a u l t   t i m e o u t   =   0 . 5   S e c ) 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 L a b e l   S e n d C o m m a n d 	 	 	 ' ( D e s t i n a t i o n   S l o t ) ( C o m m a n d   S t r i n g ) 
 
 	 V a r i a b l e   N u m e r i c   S C 1 
 
 	 V a r i a b l e   S t r i n g     S C 2 
 
 	 V a r i a b l e   N u m e r i c   S C 3   =   0 . 7   ' < - -   T h e   t i m e o u t   i n   s e c o n d s   w a s   0 . 5 
 
 	 V a r i a b l e   N u m e r i c   S C 4 
 
 	 S l o t T e x t   S C 1   =   S C 2 
 
 	 F o r   S C 4   =   0 . 1   T o   S C 3   S t e p   0 . 1 
 
 	 	 I f   S l o t T e x t ( S C 1 )   =   " " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%C O M M A N D S   T O   C O B O T Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 '   %%%%  %%%%  %%  %%  %%  %%      %%%%%  %%%%      %%%%  %%%%  %%%    %%%%  %%%%%
 
 '   %        %    %  %  %  %  %  %  %          %      %    %      %        %    %  %%%%  %    %      %
 
 '   %%%%  %%%%  %      %  %      %  %      %      %%%%      %%%%  %%%%  %%%%  %%%%      %
 
 
 
 L a b e l   E x e c C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   S t o p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t o p E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w U p C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w U p " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A r r o w D o w n C o b o t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A r r o w D o w n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A d d O r C o r r e c t P o s i t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A d d O r C o r r e c t P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D e l e t e S e l e c t e d L i n e 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D e l e t e S e l e c t e d L i n e " ) 
 
 R e t u r n 
 
 
 
 L a b e l   A d d N e w P o s i t i o n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " A d d N e w P o s i t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   E n a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " E n a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e R e p e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " D i s a b l e R e p e a t " ) 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                       Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 
 
 ' L a b e l   S e n s o r s S e t 
 
 ' 	 I f   S e n s o r s S t a t u s     =   " S e n s o r s O F F " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   T e x t   " S e n s o r s   O N " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   C o l o r   F l a s h i n g _ 9   L i m e   S n o w 
 
 ' 	 	 S e n s o r s S t a t u s     =   " S e n s o r s O N " 
 
 ' 	 E l s e 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   T e x t   " S e n s o r s   O F F " 
 
 ' 	 	 B u t t o n   S e n s o r s S e t   C o l o r   D a r k S a l m o n 
 
 ' 	 	 S e n s o r s S t a t u s     =   " S e n s o r s O F F " 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 
 
 L a b e l   E n a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e H o m e B u t t o n s 
 
 	 F o r   v 1   =   1 7   T o   2 2 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w M o t o r F P S 
 
 	 V a r i a b l e   S t r i n g   M o t o r s A r e E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   S M F 1   =   S l o t ( S l o t _ M o t o r s F P S ) 
 
 	 I f   S M F 1   >   3 0 
 
 	 	 I f   M o t o r s A r e E n a b l e d   < >   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   G r e e n Y e l l o w 
 
 	 	 E n d I f 
 
 	 	 B u t t o n   M o t o r F P S   T e x t   " F P S   "   +   S t r ( S M F 1 ) 
 
 	 E l s e 
 
 	 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 	 M o t o r s A r e E n a b l e d   =   " F A L S E " 
 
 	 	 	 B u t t o n   M o t o r F P S   C o l o r   F l a s h i n g 7   Y e l l o w   D a r k O r a n g e 
 
 	 	 	 B u t t o n   M o t o r F P S   T e x t   " N O   M O T O R S " 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   M o t o r F P S 
 
 	 I f   M o t o r s A r e E n a b l e d   =   " T R U E " 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " D i s a b l e C o n n e c t i o n " ) 
 
 	 E l s e 
 
 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o M o t o r s ) ( " E n a b l e C o n n e c t i o n " ) 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%      %%%    %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  F I V E   P U S H   B U T T O N S   - A -   Q%  %%%%      %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %    %      %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 V a r i a b l e   S t r i n g   P r e s s e d B u t t o n A 
 
 
 
 L a b e l   F i v e B u t t o n s _ A 
 
 	 V a r i a b l e   N u m e r i c   F B A 0 
 
 	 V a r i a b l e   N u m e r i c   F B A 1 
 
 	 V a r i a b l e   N u m e r i c   F B A 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a d   t h e   v a l u e   t w o   t i m e s 
 
 	 F B A 1   =   S l o t ( S l o t _ M u l t i A n a B t n A ) 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   s i m i l a r   v a l u e s 
 
 	 I f   A b s ( F B A 2   -   F B A 1 )   <   1 0 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   a r m e d 
 
 	 	 I f   F B A 0   =   0 
 
 	 	 	 F B A 0   =   1 
 
 	 	 	 S e l e c t   T r u e 
 
 	 	 	 	 C a s e   F B A 1   >   5 0 0 
 
 	 	 	 	 	 P r i n t   " " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " " 
 
 	 	 	 	 C a s e   F B A 1   >   2 5 0 
 
 	 	 	 	 	 P r i n t   " r e d   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " r e d " 
 
 	 	 	 	 	 E x e c C o b o t 
 
 	 	 	 	 C a s e   F B A 1   >   1 2 0 
 
 	 	 	 	 	 P r i n t   " w h i t e   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " w h i t e " 
 
 	 	 	 	 	 E x e c u t e C o b o t F r o m S e l e c t e d L i n e 
 
 	 	 	 	 C a s e   F B A 1   >   5 6 
 
 	 	 	 	 	 P r i n t   " a r r o w D O W N   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " A r r o w D O W N " 
 
 	 	 	 	 	 A r r o w D o w n C o b o t 
 
 	 	 	 	 C a s e   F B A 1   >   1 5 
 
 	 	 	 	 	 P r i n t   " a r r o w U P   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " A r r o w U P " 
 
 	 	 	 	 	 A r r o w U p C o b o t 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 P r i n t   " y e l l o w   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n A   =   " y e l l o w " 
 
 	 	 	 	 	 A d d O r C o r r e c t P o s i t i o n 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 	 F B A 2   =   F B A 1 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   F B A 1   >   5 0 0 
 
 	 	 F B A 0   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%        %%%    %    %  %%%%%  %%%%%  %%%%  %%  %  %%%%
 
 '   Q%  F I V E   P U S H   B U T T O N S   - B -   Q%  %%%%      %%%%  %    %      %          %      %    %  %  %%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %%%%  %%%%      %          %      %%%%  %    %  %%%%
 
 V a r i a b l e   S t r i n g   P r e s s e d B u t t o n B 
 
 
 
 L a b e l   F i v e B u t t o n s _ B 
 
 	 V a r i a b l e   N u m e r i c   F B B 0 
 
 	 V a r i a b l e   N u m e r i c   F B B 1 
 
 	 V a r i a b l e   N u m e r i c   F B B 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a d   t h e   v a l u e   t w o   t i m e s 
 
 	 F B B 1   =   S l o t ( S l o t _ M u l t i A n a B t n B ) 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   s i m i l a r   v a l u e s 
 
 	 I f   A b s ( F B B 2   -   F B B 1 )   <   1 0 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - -   I f   a r m e d 
 
 	 	 I f   F B B 0   =   0 
 
 	 	 	 F B B 0   =   1 
 
 	 	 	 S e l e c t   T r u e 
 
 	 	 	 	 C a s e   F B B 1   >   5 0 0 
 
 	 	 	 	 	 ' P r i n t   " " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " " 
 
 	 	 	 	 C a s e   F B B 1   >   2 5 0 
 
 	 	 	 	 	 P r i n t   " y e l l o w B   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " y e l l o w B " 
 
 	 	 	 	 	 A d d N e w P o s i t i o n 
 
 	 	 	 	 C a s e   F B B 1   >   1 2 0 
 
 	 	 	 	 	 P r i n t   " b l a c k B   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " b l a c k B " 
 
 	 	 	 	 	 D e l e t e S e l e c t e d L i n e 
 
 	 	 	 	 C a s e   F B B 1   >   5 6 
 
 	 	 	 	 	 P r i n t   " s m a l l   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " s m a l l " 
 
 	 	 	 	 	 ' = = =   s p a r e 
 
 	 	 	 	 C a s e   F B B 1   >   1 5 
 
 	 	 	 	 	 P r i n t   " b l u B B   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " b l u B " 
 
 	 	 	 	 	 D i s a b l e R e p e a t 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 P r i n t   " g r e e n B   " 
 
 	 	 	 	 	 P r e s s e d B u t t o n B   =   " g r e e n B " 
 
 	 	 	 	 	 ' = = =   s p a r e 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 	 F B B 2   =   F B B 1 
 
         '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   R e a r m   b u t t o n s 
 
 	 I f   F B B 1   >   5 0 0 
 
 	 	 F B B 0   =   0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 
 
 
 
 
 
 
 
 
 
 L a b e l   S e t I O T S l o t s T o Z e r o 
 
 	 ' S l o t ( S l o t _ E n c o d e r S l o w )   =   0 
 
 	 S l o t ( S l o t _ B t n Y e l l o w 1 )     =   0 
 
 	 S l o t ( S l o t _ B t n B l u e 1 )         =   0 
 
 	 S l o t ( S l o t _ B t n G r e e n 1 )       =   0 
 
 	 S l o t ( S l o t _ B t n W h i t e 1 )       =   0 
 
 	 S l o t ( S l o t _ B t n R e d 1 )           =   0 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%  %%%%  %%%%  %%%  %%%%
 
 '   Q%    S   C   O   P   E   S           Q%  %%%%  %      %    %  %%%%  %%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %%%%  %        %%%  %%%%
 
 L a b e l   C l o s e S c o p e s 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 R e t u r n 
 
 
 
 L a b e l   O p e n S c o p e _ 1 
 
 	 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%
 
 '   Q%  L E D   C O L O R S         Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 ' L a b e l   R e d _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   G r e _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   B l u _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   Y e l _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   M a g _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   C y a _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   W h i _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ G r e   =   1 0 0 0 
 
 ' 	 S l o t   S l o t _ B l u   =   1 0 0 0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   O f f _ 8 
 
 ' 	 S l o t   S l o t _ R e d   =   0 
 
 ' 	 S l o t   S l o t _ G r e   =   0 
 
 ' 	 S l o t   S l o t _ B l u   =   0 
 
 ' R e t u r n 
 
 ' 
 
 ' L a b e l   R e d B l i n k _ 8 
 
 F o r   v 1   =   1   T o   1 0 
 
 ' 	 	 R e d _ 8 
 
 	 B e e p 
 
 ' 	 O f f _ 8 
 
 	 B e e p 
 
 N e x t 
 
 R e t u r n 
 
 
 
 
 
 V a r i a b l e   N u m e r i c   W F 1 
 
 L a b e l   W i F i L i v e 
 
 	 I f   W F 1   >   3 0 
 
 	 	 W F 1   =   0 
 
 ' 	 	 S l o t ( S l o t _ G r e )   =     1 0 0 0 
 
 	 E l s e 
 
 	 	 W F 1   =   W F 1   +   1 
 
 ' 	 	 S l o t ( S l o t _ G r e )   =     0 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%  %%%%  %      %  %%%%
 
 '   Q%    S   E   R   V   O       Q%  %%%%  %%%  %%%%  %      %  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%  %  %%    %%%    %%%%
 
 L a b e l   C l e a r C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ E x t e r n a l C o m m a n d s )   =   " " 
 
 R e t u r n 
 
 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e P a r t i a l 
 
 V a r i a b l e   S t r i n g   T i m e 
 
 L a b e l   P r i n t T i m e 
 
 	 T i m e   =   " P a r t i a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e P a r t i a l ,   " 0 . 0 " ) , 4 ) 
 
 	 T i m e   =   T i m e   +   "       T o t a l   t i m e   =   " 
 
 	 T i m e   =   T i m e   +   P a d L e f t ( F o r m a t ( E l a p s e d T i m e   -   S t a r t T i m e ,   " 0 . 0 " ) , 4 ) 
 
 	 ' P r i n t   S t a t u s   +   "     "   +   T i m e   +   C R L F 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%
 
 '   Q%    S A Y           Q%  %%%%  %%%%    %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %      %
 
 L a b e l   S a y 
 
 	 T T S   S e l e c t V o i c e   " E N G F " 
 
 	 T T S   S p e a k   " T o d a y   i s   a   b e a u t i f u l   d a y   b e c a u s e   w e   s p e n d   t i m e   t o g e t h e r . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " I T A   F E M " 
 
 	 T T S   S p e a k   " O g g i      u n a   b e l l a   g i o r n a t a   p e r c h e   p a s s e r e m o   d e l   t e m p o   i n s i e m e . " 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " J P N " 
 
 	 T T S   S p e a k   " y_0a0o0 N}k0Bf0NT0Y0n0g00Neo0W0D0eg0Y00" 
 
 	 W a i t   T T S r e a d y 
 
 	 
 
 	 T T S   S e l e c t V o i c e   " Z H O " 
 
 	 T T S   S p e a k   " N)Y/f}Yv N)YV:NbNqQ^eIQ0" 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %  %%%%  %%%%
 
 '   Q%  V O I C E       Q%    %  %    %    %  %  %        %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %  %%%%  %%%%
 
 L a b e l   V o i c e 
 
 	 ' L o a d   i m a g e s \ L I S T _ V O I C E _ C O M M A N D . j p g 
 
 	 C l e a r V o i c e C o m m a n d 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " " 
 
 	 	 B u t t o n   V o i c e   C o l o r   B l u e 
 
 	 E l s e 
 
 	 	 V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 B u t t o n   V o i c e   C o l o r   F l a s h i n g 7   O r a n g e   W h i t e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   A I G P T 
 
 	 L o a d   T h e r e m i n o _ G P T . e x e 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   W o r d 
 
 V a r i a b l e   S t r i n g   V o i c e C o m m a n d s S t a t u s 
 
 L a b e l   I n t e r p r e t a t e V o i c e C o m m a n d s 
 
 	 I f   V o i c e C o m m a n d s S t a t u s   =   " a c t i v e " 
 
 	 	 I f   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   < >   " " 
 
 	 	 	 W o r d   =   S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d ) 
 
 	 	 	 P r i n t   W o r d   +   "   " 
 
 	 	 	 I n t e r p r e t a t e 
 
 	 	 	 C l e a r V o i c e C o m m a n d 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   S h o w i n g T y p e 
 
 L a b e l   I n t e r p r e t a t e 
 
 	 S e l e c t   W o r d 
 
 	 	 C a s e   " g r e e n c a r . p i c k " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ p i c k . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " w i n d s h i e l d . s i d e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ f r o n t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " s e e . b a c k s i d e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ b a c k . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 
 
 	 	 C a s e   " d r i v e r . p r o s p e c t " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ l e f t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " r i g h t . o u t l o o k " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ r i g h t . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " b o t t o m . v i e w " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ u n d e r s i d e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " r e l e a s e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V _ c a r _ p l a c e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e   " g o t o . s q u a r e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 R e d _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ m e c h A r m _ s q u a r e . t x t     " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 C a s e   " g o t o . h o m e " 
 
 	 	 	 I f   S h o w i n g T y p e   =   " " 
 
 ' 	 	 	 	 M a g _ 8 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   V o i c e _ m e c h A r m _ h o m e . t x t " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 	 	 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 	 	 	 E n d I f 
 
 	 	 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   W o r d   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 L a b e l   C l e a r V o i c e C o m m a n d 
 
 	 S l o t T e x t ( S l o t _ W o r d R e c o g n i z e d )   =   " " 
 
 R e t u r n 
 
 
 
 ' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%  %%  %%  %%      %%%  %%%%      %%%%  %%%%  %%%    %%%%  %%%%%
 
 ' Q%C O M M A N D S   F R O M   C O B O T Q%  %        %    %  %  %  %  %  %  %      %%    %%%%      %        %    %  %%%%  %    %      %
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %      %  %      %      %      %  %%      %%%%  %%%%  %%%%  %%%%      %
 
 L a b e l   E v e n t _ E x t e r n a l C o m m a n d s 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 ' P r i n t   "   E x e c :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( C o m m a n d T e x t ,   0 ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   A C T I O N S 
 
 	 	 C a s e   " S a y " 
 
 	 	 	 T T S   S p e a k   M i d ( C o m m a n d T e x t ,   5 ) 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e   " S a y W " 
 
 	 	 	 T T S   S p e a k   M i d ( C o m m a n d T e x t ,   5 ) 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 	 
 
 	 	 C a s e   " B e e p " 
 
 	 	 	 B e e p   8 8 0 - 1 0 0 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 	 C a s e E l s e 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   C o m m a n d T e x t   +   C R L F 
 
 	 	 	 B e e p 
 
 	 	 	 C l e a r C o m m a n d 
 
 	 E n d S e l e c t 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %  %%%%  %
 
 '   Q%  T   R   I   A   L   S                                             Q%      %      %%%%  %  %%%%  %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %  %%  %  %    %  %%%
 
 V a r i a b l e   N u m e r i c   L o o p _ C o u n t 
 
 
 
 L a b e l   D e m o l o o p 
 
 	 F o r   L o o p _ C o u n t   =   1   T o   1 0 
 
 	 	 R a i s e U p 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 	 L i e D o w n 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 ' 	 R a i s e U p 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o M a x 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 R a i s e U p 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o T i l t L e f t 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o M i n 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o S e a t 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 L i e D o w n 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o T i l t R i g h t 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o M a x 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 R a i s e U p 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 L i e D o w n 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o M a x 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o T i l t R i g h t 
 
 	 ' 	 W a i t C o b o t R e a d y 
 
 	 ' 	 G o M a x 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 L a b e l   L i e D o w n 
 
 	 
 
 R e t u r n 
 
 
 
 L a b e l   R a i s e U p 
 
 	 
 
 R e t u r n 
 
 
 
 L a b e l   G o M a x 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   G o _ M a x . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   G o M i n 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   G o _ M i n . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   G o S e a t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   G o _ S e a t . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   G o T i l t R i g h t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   G o _ T i l t R i g h t . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 L a b e l   G o T i l t L e f t 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " L o a d S e q u e n c e   G o _ T i l t L e f t . t x t " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S e l e c t L i n e   1 " ) 
 
 	 S e n d C o m m a n d ( S l o t _ C o m m a n d s T o C o b o t ) ( " S t a r t E x e c u t i o n " ) 
 
 R e t u r n 
 
 
 
 
 
 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%  %  %%%%  %%%%  %%%%  %%%%  %%%%  %%%%
 
 '   Q%  E N C O D E R S   U S B                       Q%  %%%    %  %%  %        %    %  %    %  %%%    %%%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%%  %%%%  %%%%  %%%%  %  %%  %%%%
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 1 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 1 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 2 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 2 
 
 V a r i a b l e   N u m e r i c   E n c o d e r S t e p s 3 
 
 V a r i a b l e   N u m e r i c   O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 V a r i a b l e   N u m e r i c   D i f f e r e n c e 3 
 
 
 
 L a b e l   R e a d B u t t o n s 
 
 	 S l o t ( S l o t _ B u t t o n F L )   =   3 1       ' g r e 
 
 	 S l o t ( S l o t _ B u t t o n F R )   =   3 0       ' y e l 
 
 	 S l o t ( S l o t _ B u t t o n R L )   =   3 3       ' w h y 
 
 	 S l o t ( S l o t _ B u t t o n R R )   =   3 2       ' b l u 
 
 R e t u r n 
 
 
 
 L a b e l   R e c o g n i z e E n c o d e r 
 
 	 S l o t ( 0 )   =   R e c o g n i z e 
 
 R e t u r n 
 
 
 
 L a b e l   E n c o d e r s 
 
 	 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 1 
 
 	 E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 D i f f e r e n c e 1   =   E n c o d e r S t e p s 1   -   O l d E n c o d e r S t e p s 1 
 
 	 O l d E n c o d e r S t e p s 1   =   E n c o d e r S t e p s 1 
 
 	 I f   D i f f e r e n c e 1   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 1   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   0 . 5 
 
 	 ' I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 ' 	 D i f f e r e n c e 1   =   D i f f e r e n c e 1   *   0 . 1 
 
 	 ' E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 1 )   +   D i f f e r e n c e 1 ,   1 1 0 ,   8 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 1 )   +   D i f f e r e n c e 1 ,   1 1 0 ,   8 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 1 )   +   D i f f e r e n c e 1 ,   1 1 0 ,   8 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 1 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 1 )   +   D i f f e r e n c e 1 ,   1 1 0 ,   8 9 9 ) 
 
 	 E n d I f 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 2 
 
 	 E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 D i f f e r e n c e 2   =   E n c o d e r S t e p s 2   -   O l d E n c o d e r S t e p s 2 
 
 	 O l d E n c o d e r S t e p s 2   =   E n c o d e r S t e p s 2 
 
 	 I f   D i f f e r e n c e 2   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 2   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   0 . 5 
 
 	 ' I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 ' 	 D i f f e r e n c e 2   =   D i f f e r e n c e 2   *   0 . 1 
 
 	 ' E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 2 )   +   D i f f e r e n c e 2 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 2 )   +   D i f f e r e n c e 2 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 2 )   +   D i f f e r e n c e 2 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 2 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 2 )   +   D i f f e r e n c e 2 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
         ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   r e a d   e n c o d e r 3 
 
 	 E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 	 D i f f e r e n c e 3   =   E n c o d e r S t e p s 3   -   O l d E n c o d e r S t e p s 3 
 
 	 O l d E n c o d e r S t e p s 3   =   E n c o d e r S t e p s 3 
 
 	 I f   D i f f e r e n c e 3   >   3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   -   6 5 5 3 6 
 
 	 E n d I f 
 
 	 I f   D i f f e r e n c e 3   <   - 3 2 0 0 0 
 
 	 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   +   6 5 5 3 6 
 
 	 E n d I f 
 
 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 5 
 
 	 ' I f   S l o t ( S l o t _ E n c o d e r S l o w )   <   5 0 0 
 
 	 ' 	 D i f f e r e n c e 3   =   D i f f e r e n c e 3   *   0 . 1 
 
 	 ' E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F L 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F L 3 )   +   D i f f e r e n c e 3 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n F R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ F R 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ F R 3 )   +   D i f f e r e n c e 3 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R L )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R L 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R L 3 )   +   D i f f e r e n c e 3 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 	 I f   S l o t ( S l o t _ B u t t o n R R )   <   5 0 0 
 
 	 	 S l o t ( S l o t _ S e r v o _ R R 3 )   =   L i m i t ( S l o t ( S l o t _ S e r v o _ R R 3 )   +   D i f f e r e n c e 3 ,   1 1 0 ,   9 9 9 ) 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   R e s e t E n c o d e r s 
 
 	 O l d E n c o d e r S t e p s 1   =   S l o t ( S l o t _ E n c o d e r 1 ) 
 
 	 O l d E n c o d e r S t e p s 2   =   S l o t ( S l o t _ E n c o d e r 2 ) 
 
 	 O l d E n c o d e r S t e p s 3   =   S l o t ( S l o t _ E n c o d e r 3 ) 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   V a r i a b l e 
 
 